package com.ybkj.daijia.server.mapper;


import com.ybkj.daijia.server.model.DriverTimeMonth;
import org.apache.ibatis.annotations.Param;

public interface DriverTimeMonthMapper {

    /**
     * 保存月份记录
     *
     * @param record
     * @return
     */
    int insertRecord(DriverTimeMonth record);

    /**
     * 根据主键查询月份记录
     *
     * @param id
     * @return
     */
    DriverTimeMonth selectByPrimaryKey(Long id);

    /**
     * 根据年份主键和月份查询月记录
     *
     * @param yearId
     * @param month
     * @return
     */
    DriverTimeMonth selectByYearAndMonth(@Param("yearId") Long yearId,
        @Param("month") Integer month);

    /**
     * 根据主键更新月份记录
     *
     * @param record
     * @return
     */
    int updateByPrimaryKey(DriverTimeMonth record);
}
